<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>支付</title>
	<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>
    <link href="<?php echo TEMPLATE_SITE_URL;?>/css/payment.css" rel="stylesheet" type="text/css">
</head>
<body>

<div id="contentbox" style="min-height: 740px;">

<div class="addressMain">
        <div class="userInfo">
            <span>添加收货地址</span>
            <span></span>
        </div>
        <div class="addressInfo">获取地址</div>
        <div class="edit"></div>
</div>

<div class="saleMain">
    <div class="title">拍品信息</div>
    <div class="goodInfo">
        <div class="img" style="background-image: url(<?php echo UPLOAD_SITE_URL.'/shop/auction/'.$output['auction']['auction_add_date'].'/'.$output['auction']['auction_img1'];?>);"></div>
        <div class="desc"><?php echo $output['auction']['auction_name'];?></div>
        <div class="endTime"><span>截止时间：</span><span><?php echo date('Y年m月d日 H:i',$output['auction']['end_time']);?></span></div>
    </div>
    <div class="saleArgs">
        <div class="argItem">
            <span>运费：</span>
            <span>买家自理</span>
        </div>
        <div class="argItem">
            <span>保证金：</span>
            <span>￥<?php echo $output['auction']['cashprice'];?>元</span>
        </div>
        <div class="argItem">
            <span>成交金额：</span>
            <span>￥<?php echo $output['auction_log']['auction_price'];?>元</span>
        </div>
    </div>
</div>

<div class="payMain">
    <div class="payPrice">
        <span>付款金额：</span>
        <span class="h1">￥<?php echo $output['auction_log']['auction_price'];?>元</span>
        <span class="payMemo"></span>
    </div>
    <div class="payMethodList">
    	<!-- 开通 needOpen  -->
        <div class="payMethod balance <?php if($output['user']['price']>0){ echo 'selected';}?>">
            <div class="checkbox"></div>
            <div class="icon"></div>
            <div class="content">
                <div class="title">余额支付</div>
                <div class="desc">可用余额：￥ <?php echo $output['user']['price'];?> 元</div>
            </div>
        </div>
        <div class="payMethod weixin <?php if($output['user']['price']<=0){ echo 'selected';}?>">
            <div class="checkbox"></div>
            <div class="icon"></div>
            <div class="content">
                <div class="title">微信支付</div>
                <div class="desc">使用微信支付，简单方便</div>
            </div>
        </div>
    </div>
    <div class="payBtn">
        <div class="submit hide">安全支付</div>
        <div class="address">选择收货地址</div>
    </div>
</div>
</div>
<script type="text/javascript">
$(function(){
	$('.payMethod').click(function(){
		$('.payMethod').removeClass('selected');
		$(this).addClass('selected');
	});
});
</script>
</body>
</html>